package com.xpandaframework.sys.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.xpandaframework.base.curd.BaseDao;
import org.xpandaframework.base.exception.XpandaFrameworkException;
import org.xpandaframework.base.service.impl.BaseServiceImpl;

import com.xpandaframework.sys.dao.SysUserDao;
import com.xpandaframework.sys.entity.SysUser;
import com.xpandaframework.sys.service.SysUserService;

@Service
public class SysUserServiceImpl extends BaseServiceImpl<SysUser> implements SysUserService {

  @Autowired
  private SysUserDao sysUserDao;

  @Override
  protected BaseDao<SysUser> getBaseDao() {
    return this.sysUserDao;
  }

  @Override
  public void insertUser() throws XpandaFrameworkException {
    final SysUser u = new SysUser();

    this.sysUserDao.create(u);
  }

}
